package cn.zebra.dev.shop.module.product.vo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.Collection;

/**
 * @author runnable@sina.cn
 */
@Getter
@Setter
@ToString
public class ProductSaleVO {
    @ApiModelProperty(value = "商品id")
    @NotNull(message = "请选择商品!")
    @NotEmpty(message = "请选择商品!")
    private Collection<Long> productId;

    @ApiModelProperty(value = "是否上架 true 上架|false 下架")
    @NotNull(message = "请选择是否上架!")
    private Boolean sale;
}
